home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 12.9 KB | 487 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLFileSp.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * File: SLFilesp.idl
- *
- * Contains: Interfaces for FW_OFileSpecification and FW_ODirectorySpecification classes
- * Release Version: $ ODF 2 $
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- */
-
-
- #ifndef SOM_FW_OFileSpecification_xh
- #define SOM_FW_OFileSpecification_xh
-
- class FW_OFileSpecification;
-
- #define FW_OFileSpecification_MajorVersion 1
- #define FW_OFileSpecification_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_SOMObject_xh
- #include <somobj.xh>
- #endif
-
- #ifndef FW_OFileSpecification_API
- #define FW_OFileSpecification_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class FW_OFileSpecification;
- class FW_ODirectorySpecification;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OFileSpecificationCClassData FW_OFileSpecificationClassData
- #define FW_OFileSpecificationNewClass(major,minor) somNewVersionedClassReference(FW_OFileSpecification,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OFileSpecificationMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OFileSpecification class object, and the methods it introduces. */
- SOMEXTERN struct FW_OFileSpecificationClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken somInit;
- somMToken somUninit;
- somMToken InitFromFileName;
- somMToken InitFromDirectoryAndName;
- somMToken GetName;
- somMToken GetParentDirectory;
- somMToken GetFullPath;
- somMToken IsSameAs;
- somMToken AssignOFileSpecification;
- somMToken AssignFileName;
- somMToken AssignFileSpec;
- somMToken MacGetFSSpec;
- somMToken MacSetTypeAndCreator;
- somMToken MacGetTypeAndCreator;
- } SOMDLINK FW_OFileSpecificationClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OFileSpecification_Class_Source) && !defined(SOM_Module_slfilesp_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OFileSpecificationClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OFileSpecification Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_FW_OFileSpecification_InitFromFileName)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_HString fileName);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_InitFromDirectoryAndName)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_ODirectorySpecification* directory,
- FW_HString fileName);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_GetName)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_HString* fileName);
- typedef FW_ODirectorySpecification* (* SOMLINK somTD_FW_OFileSpecification_GetParentDirectory)(FW_OFileSpecification *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_GetFullPath)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_HString* fullPathName);
- typedef FW_Boolean (* SOMLINK somTD_FW_OFileSpecification_IsSameAs)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_OFileSpecification* theOtherFile);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_AssignOFileSpecification)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_OFileSpecification* theOtherFile);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_AssignFileName)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_HString fileName);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_AssignFileSpec)(FW_OFileSpecification *somSelf, Environment *ev,
- FSSpec* macSpec);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_MacGetFSSpec)(FW_OFileSpecification *somSelf, Environment *ev,
- FSSpec* macSpec);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_MacSetTypeAndCreator)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_ResourceType aFileType,
- FW_ResourceType aCreatorType);
- typedef void (* SOMLINK somTD_FW_OFileSpecification_MacGetTypeAndCreator)(FW_OFileSpecification *somSelf, Environment *ev,
- FW_ResourceType* aFileType,
- FW_ResourceType* aCreatorType);
- }
-
- #endif /* FW_OFileSpecification_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for FW_OFileSpecification
- */
- class FW_OFileSpecification : public SOMObject
- {
- public:
-
- // FW_OFileSpecification::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OFileSpecification, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OFileSpecification);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OFileSpecification);
- #endif
- }
-
- // FW_OFileSpecification::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitFromFileName */
- void InitFromFileName(Environment *ev,
- FW_HString fileName)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,InitFromFileName)
- (this,ev,fileName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: InitFromDirectoryAndName */
- void InitFromDirectoryAndName(Environment *ev,
- FW_ODirectorySpecification* directory,
- FW_HString fileName)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,InitFromDirectoryAndName)
- (this,ev,directory,fileName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetName */
- void GetName(Environment *ev,
- FW_HString* fileName)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,GetName)
- (this,ev,fileName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetParentDirectory */
- FW_ODirectorySpecification* GetParentDirectory(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- FW_ODirectorySpecification* __somResult =
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,GetParentDirectory)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,GetParentDirectory)
- (this,ev);
- #endif
- }
-
- /* method: GetFullPath */
- void GetFullPath(Environment *ev,
- FW_HString* fullPathName)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,GetFullPath)
- (this,ev,fullPathName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: IsSameAs */
- FW_Boolean IsSameAs(Environment *ev,
- FW_OFileSpecification* theOtherFile)
- {
- #ifdef SOMCHKEXCEPT
- FW_Boolean __somResult =
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,IsSameAs)
- (this,ev,theOtherFile);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,IsSameAs)
- (this,ev,theOtherFile);
- #endif
- }
-
- /* method: AssignOFileSpecification */
- void AssignOFileSpecification(Environment *ev,
- FW_OFileSpecification* theOtherFile)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,AssignOFileSpecification)
- (this,ev,theOtherFile);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: AssignFileName */
- void AssignFileName(Environment *ev,
- FW_HString fileName)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,AssignFileName)
- (this,ev,fileName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: AssignFileSpec */
- void AssignFileSpec(Environment *ev,
- FSSpec* macSpec)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,AssignFileSpec)
- (this,ev,macSpec);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: MacGetFSSpec */
- void MacGetFSSpec(Environment *ev,
- FSSpec* macSpec)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,MacGetFSSpec)
- (this,ev,macSpec);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: MacSetTypeAndCreator */
- void MacSetTypeAndCreator(Environment *ev,
- FW_ResourceType aFileType,
- FW_ResourceType aCreatorType)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,MacSetTypeAndCreator)
- (this,ev,aFileType,aCreatorType);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: MacGetTypeAndCreator */
- void MacGetTypeAndCreator(Environment *ev,
- FW_ResourceType* aFileType,
- FW_ResourceType* aCreatorType)
- {
- SOM_ResolveD(this,FW_OFileSpecification,FW_OFileSpecification,MacGetTypeAndCreator)
- (this,ev,aFileType,aCreatorType);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* FW_OFileSpecification */
-
-
-
- #endif /* SOM_FW_OFileSpecification_xh */
-
- #ifndef SOM_FW_ODirectorySpecification_xh
- #define SOM_FW_ODirectorySpecification_xh
-
- class FW_ODirectorySpecification;
-
- #define FW_ODirectorySpecification_MajorVersion 1
- #define FW_ODirectorySpecification_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_OFileSpecification_xh
- #include <SLFileSp.xh>
- #endif
-
- #ifndef FW_ODirectorySpecification_API
- #define FW_ODirectorySpecification_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_ODirectorySpecificationCClassData FW_ODirectorySpecificationClassData
- #define FW_ODirectorySpecificationNewClass(major,minor) somNewVersionedClassReference(FW_ODirectorySpecification,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_ODirectorySpecificationMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_ODirectorySpecification class object, and the methods it introduces. */
- SOMEXTERN struct FW_ODirectorySpecificationClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken AppendDirectoryName;
- } SOMDLINK FW_ODirectorySpecificationClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_ODirectorySpecification_Class_Source) && !defined(SOM_Module_slfilesp_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_ODirectorySpecificationClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_ODirectorySpecification Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_FW_ODirectorySpecification_AppendDirectoryName)(FW_ODirectorySpecification *somSelf, Environment *ev,
- FW_HString directoryName);
- }
-
- #endif /* FW_ODirectorySpecification_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for FW_ODirectorySpecification
- */
- class FW_ODirectorySpecification : public FW_OFileSpecification
- {
- public:
-
- // FW_ODirectorySpecification::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_ODirectorySpecification, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_ODirectorySpecification);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_ODirectorySpecification);
- #endif
- }
-
- // FW_ODirectorySpecification::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: AppendDirectoryName */
- void AppendDirectoryName(Environment *ev,
- FW_HString directoryName)
- {
- SOM_ResolveD(this,FW_ODirectorySpecification,FW_ODirectorySpecification,AppendDirectoryName)
- (this,ev,directoryName);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* FW_ODirectorySpecification */
-
-
-
- #endif /* SOM_FW_ODirectorySpecification_xh */
-